import customtkinter as ctk
from mcomponent.toptitlebar import toptitlebar as tpbar
# 自定义标题栏高度
TITLE_BAR_HEIGHT = 25



# 设置主题
ctk.set_appearance_mode("system")
ctk.set_default_color_theme("blue")


# 创建主窗口，并隐藏系统标题栏
app = ctk.CTk()
app.overrideredirect(True)  # 隐藏默认标题栏
app.geometry("800x600")


tpb = tpbar(app,25,"#000000")
tpb.pack(fill="x")


app.mainloop()